how to find the solutions of a polynomial